package com.jn.jetpack.dao;

import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.Query;

import com.jn.jetpack.entity.QAndAEntity;

import java.util.List;

@Dao
public interface QAndADao {
    @Insert
    void insert(QAndAEntity entity);

    @Query("SELECT * FROM q_and_a")
    List<QAndAEntity> getAll();
}